package com.zhaozhe.datastructure;

/**
 * Created by ghjou on 2018/3/7.
 */
public class StackTest {
    public static void main(String[] args) {
        SafeStack safeStack = new SafeStack();
//        PushThread pushThread = new PushThread(safeStack);
//        Thread pThread = new Thread(pushThread);
//        PopThread popThread = new PopThread(safeStack);
//        Thread poThread = new Thread(popThread);
//        pThread.start();
//        poThread.start();

        PushThread pushThread = new PushThread(safeStack);
        PopThread popThread = new PopThread(safeStack);
        pushThread.start();
        popThread.start();
    }
}
